// 引入 request 文件
import request from '@/api/request'

// 获取学习列表详细信息
// export const login = (id) => {
// 	return request({
// 		url: '/study/studyInfo/' + id,
// 		method: 'get',
// 	})
// }

// 增加学习列表
export const login = (params) => {
	return request({
		url: '/public/login',
		method: 'post',
		data: params
	})
}

// 获取问卷题目
export const getSurveyTemplate = (params) => {
	return request({
		url: 'userapi/public/getSurveyTemplate',
		method: 'post',
		data: params
	})
}

// 提交问卷题目
export const postSurvey = (params) => {
	return request({
		url: 'userapi/public/postSurvey',
		method: 'post',
		data: params
	})
}
// 提交意见反馈
export const postFeedback = (params) => {
	return request({
		url: 'userapi/public/postFeedback',
		method: 'post',
		data: params
	})
}

// 获取详情
export const getNewsDetail = (params) => {
	return request({
		url: 'userapi/public/get_news_detail',
		method: 'get',
		data: params
	})
}

// 提交健康诊断
export const healthAdd = (params) => {
	return request({
		url: 'userapi/public/health_add',
		method: 'post',
		data: params
	})
}

// 提交打开数据
export const updClick = (params) => {
	return request({
		url: 'userapi/public/updClick',
		method: 'post',
		data: params
	})
}

// 推荐文章
export const getNewsRelation = (params) => {
	return request({
		url: 'userapi/public/get_news_relation',
		method: 'post',
		data: params
	})
}


